if ($response && $response.body) {
    let body = $response.body.toString(); // 确保转为字符串
    body = body.replace(/"isPend":\s*2/g, '"isPend":1');
    body = body.replace(/"level":\s*null/g, '"level":1');
    $done({body});
} else {
    $done({});  // 空响应保底
}